package cn.janescott.feigncustom.web;

import cn.janescott.feigncustom.service.EurekaService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author scott
 * @date 2019/1/4
 */
@RestController
@RequestMapping("/query")
public class FeignController {

    @Resource
    private EurekaService eurekaService;

    @GetMapping("/getEurekaServerUrl")
    public Object getEurekaServerUrl() {
        return eurekaService.getEurekaServerUrl();
    }

    @GetMapping("getEurekaInfo")
    public Object getEurekaInfo() {
        return eurekaService.getEurekaInfo();
    }

}
